package com.hhkj.admin.student.controller;

import java.util.List;

import com.hhkj.admin.student.model.req.StudentLoginLogReq;
import com.hhkj.admin.student.service.biz.StudentLoginLogBizService;
import com.ruoyi.common.valid.VAdd;
import com.ruoyi.common.valid.VEdit;
import com.ruoyi.common.valid.VList;
import com.ruoyi.system.domain.StudentLoginLog;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.core.page.TableDataInfo;

/**
 * 学员登录日志Controller
 *
 * @author ruoyi
 * @since 2023-05-22
 */
@RestController
@RequestMapping("/admin/student/login")
public class StudentLoginLogController extends BaseController
{
    @Autowired
    private StudentLoginLogBizService studentLoginLogBizService;

    /**
    * 分页查询学员登录日志
    */
    @PreAuthorize("@ss.hasPermi('admin:student:page')")
    @PostMapping("/page")
    public TableDataInfo page(@RequestBody StudentLoginLogReq studentLoginLogReq) {
        startPageBody(studentLoginLogReq);
        List<StudentLoginLog> list = studentLoginLogBizService.selectStudentLoginLogList(studentLoginLogReq);
        return getDataTable(list);
    }
}
